/**
 * 
 */
package guice.trails.cardeal.providers;

import guice.trails.cardeal.Ford;

import com.google.inject.Provider;

/**
 * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
 * @version $Id$
 */
public class FordProvider implements Provider<Ford> {

	private static int stock = 10;

	@Override
	public Ford get() {
		Ford car = null;

		if (stock > 0) {
			car = new Ford(2001, 12);
			stock--;
		}

		return car;
	}

}
